<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body></body>
  <script>
    // try {
    //   console.log(1)
    //   var a = 123
    //   if (a != 666) {
    //     throw '9999'
    //   }
    //   console.log(2)
    // } catch (easdrr) {
    //   console.log(easdrr + 12312312)
    // } finally {
    //   console.log(6666)
    // }

    class School {
      name = ''
      address = ''
      constructor(name, address) {
        this.name = name
        this.address = address
        console.log(name, address)
      }
      getStudent() {
        return this.address + this.name + '有999个学生'
      }
    }
    var school = new School('清华', '北京')
    var str = school.getStudent()
    console.log(str)
  </script>
</html>
